import request from '@/utils/request'

// 查询加入的群列表
export function listJoin(query) {
  return request({
    url: '/bot/join/list',
    method: 'get',
    params: query
  })
}

// 查询加入的群详细
export function getJoin(id) {
  return request({
    url: '/bot/join/' + id,
    method: 'get',
    headers: {
      custom:{
        showLoading:true
      }
    }
  })
}

// 新增加入的群
export function addJoin(data) {
  return request({
    url: '/bot/join',
    method: 'post',
    data: data,
    headers: {
      custom:{
        showLoading:true,
        loadingMsg:'处理中...'
      }
    }
  })
}

// 修改加入的群
export function updateJoin(data) {
  return request({
    url: '/bot/join',
    method: 'put',
    data: data,
    headers: {
      custom:{
        showLoading:true,
        loadingMsg:'处理中...'
      }
    }
  })
}

// 删除加入的群
export function delJoin(id) {
  return request({
    url: '/bot/join/' + id,
    method: 'delete',
    headers: {
      custom:{
        showLoading:true,
        loadingMsg:'处理中...'
      }
    }
  })
}
